package com.partners.service;

import com.partners.dao.dto.PermissionOutputDTO;
import com.partners.dao.dto.RolePermissionDTO;
import com.partners.dao.bo.PermissionDO;
import com.partners.dao.bo.RolePermissionDO;
import com.partners.model.Paging;

import java.util.List;
import java.util.Map;

/**
 * @author liangyongle
 * @date 2018-12-08
 */
public interface PermissionService {


    Map<String,Object> getPermissionList(Paging paging, Integer uid);

    PermissionDO getPermissionDetail(Integer id);

    Integer editPermission(PermissionDO permissionDO);

    Map<String,Object> getRolePermission(Paging paging, Integer roleId);

    Integer editRolePermission(RolePermissionDO rolePermissionDO);

    Boolean editPerRole(RolePermissionDTO rolePermissionDTO);

    Integer deletePermission(Integer id);

    Integer deleteRolePermission(Integer roleId, Integer pid);

    List<PermissionOutputDTO> getMyPermissionList(Integer uid);
}
